package service

var (
	LockName = make(map[string]string)
)

func Lock(name string) bool {
	value := LockName[name]
	if value != "" {
		return false
	}
	LockName[name] = "1"
	return true
}

func UnLock(name string)  {
	LockName[name] = ""
}